package com.meilai.project.mapper.finance.supplier;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.finance.supplier.SupplierListDTO;
import com.meilai.project.entity.finance.supplier.Supplier;
import com.meilai.project.vo.finance.supplier.SupplierWebVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierMapper extends BaseMapper<Supplier> {

    List<SupplierWebVO> selectPageList(Page<SupplierWebVO> page,
                                       @Param("query") SupplierListDTO query);

    void deleteSupplierRelationById(@Param("id") Long id);
}
